{% extends "user/edit_base.html" %}

{% set user = g.userobj %}

{% block breadcrumb_content %}
  <li class="active"><a href="{{ h.url_for('dashboard.index') }}">{{ _('Dashboard') }}</a></li>
{% endblock %}

{% block secondary %}{% endblock %}

{% block primary %}
  <article class="module">
    {% block page_header %}
      <header class="module-content page-header hug">
        <div class="content_action">
          {% link_for _('Edit settings'), named_route='user.edit', id=user.name, class_='btn btn-default', icon='cog' %}
        </div>
        <ul class="nav nav-tabs">
          {{ h.build_nav_icon('dashboard.index', _('News feed'), icon='list') }}
          {{ h.build_nav_icon('dashboard.datasets', _('My Datasets'), icon='sitemap') }}
          {{ h.build_nav_icon('dashboard.organizations', _('My Organizations'), icon='building-o') }}
          {{ h.build_nav_icon('dashboard.groups', _('My Groups'), icon='users') }}
        </ul>
      </header>
    {% endblock %}
    <div class="module-content">
      {% if self.page_primary_action() | trim %}
        <div class="page_primary_action">
          {% block page_primary_action %}{% endblock %}
        </div>
      {% endif %}
      {% block primary_content_inner %}
        <div data-module="dashboard">
          {% snippet 'user/snippets/followee_dropdown.html', context=dashboard_activity_stream_context, followees=followee_list %}
          <h2 class="page-heading">
            {% block page_heading %}
              {{ _('News feed') }}
            {% endblock %}
            <small>{{ _("Activity from items that I'm following") }}</small>
          </h2>
          {% snippet 'snippets/activity_stream.html', activity_stream=dashboard_activity_stream %}
        </div>
      {% endblock %}
    </div>
  </article>
{% endblock %}
